using System;
using System.Collections;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace TextParsing.GraphStructure
{
	public class Node
	{
		private long m_id;
		private string m_term;
		private long m_totalTermFrequency;
		private ArrayList m_sections;
		
		public Node()
		{
			m_sections = new ArrayList();
		}

		[XmlElement("id")]
		public long Id
		{
			get { return m_id; }
			set { m_id = value; }
		}

		[XmlElement("term")]
		public string Term
		{
			get { return m_term; }
			set { m_term = value; }
		}

		[XmlElement("total-term-frequency")]
		public long TotalTermFrequency
		{
			get { return m_totalTermFrequency; }
			set { m_totalTermFrequency = value; }
		}

		[XmlArrayItem("section",typeof(Section),IsNullable = false)]
		[XmlArray]
		public IList Sections
		{
			get { return m_sections; }
		}
	}
}
